Skip to content

Modernize packaging, CI and tests; release 1.4 - #13

Merged
gabfl merged 1 commit into
mainfrom
modernize-ci-deps
Nov 11, 2026
Merged

gabfl merged 1 commit into
mainfrom
modernize-ci-deps

Conversation

@gabfl

@gabfl gabfl commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Packaging: setup.py → pyproject.toml. Drops the pypandoc/pandoc build requirement (README is now served as Markdown), plus unused PyYAML and stdlib argparse from dependencies. Requires Python ≥ 3.10 (psycopg2-binary's current floor). Version → 1.4.
  • CI: Python 3.10–3.14 matrix; MySQL 8.4 and PostgreSQL 17 as service containers; checkout@v5, setup-python@v6, codecov-action@v5; new build job runs python -m build + twine check --strict and uploads dist/.
  • Bug fix: stdout mode left a temp file containing the query results in /tmp on every run; it is now removed after printing.
  • Deprecation: pymysql db= → database=.
  • Tests: two cursor tests were never collected (missing test_ prefix); resolve_home_dir test hardcoded /home/runner; connections/files are now closed; temp dirs instead of fixed /tmp paths; new tests for main() (stdin + arg parsing), temp-file cleanup, and JSONB stringification. .coveragerc no longer excludes all of main().

🤖 Generated with Claude Code

- Replace setup.py with pyproject.toml; drop pypandoc build dependency
  and unused/stdlib deps (PyYAML, argparse); require Python >= 3.10
- CI: test Python 3.10-3.14 against MySQL 8.4 / PostgreSQL 17 service
  containers, bump actions, use codecov-action, add build + twine check job
- Remove stdout temp files after printing (query data was left in /tmp)
- Use pymysql `database=` instead of deprecated `db=`
- Tests: enable never-collected cursor tests, fix hardcoded home dir,
  close connections/files, use temp dirs, add main() and JSON coverage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f069b28) to head (94447c9).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #13   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          105       136   +31     
=========================================
+ Hits           105       136   +31     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gabfl
gabfl merged commit b40be96 into main Nov 11, 2026
7 of 8 checks passed
@gabfl
gabfl deleted the modernize-ci-deps branch November 11, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant